﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpMUD.Framework.CorlibExtensions
{
    public static class System_Type
    {
        public static object CreateInstance(this System.Type self)
        {
            return self.Assembly.CreateInstance(self.FullName, false);
        }

        public static object CreateInstance(this System.Type self, object[] constructorParameters)
        {
            return self.Assembly.CreateInstance(self.FullName, false,System.Reflection.BindingFlags.Default,null,constructorParameters,null,null);
        }
    }
}
